<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.util.*,com.hk.dao.*" %>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	String secondName = request.getParameter("titlename");	//接收客户端传过来的一级标题
	String filePath = request.getParameter("filepath");
	int parentId = Integer.parseInt(request.getParameter("parenttitle"));
	
	SecondTitleDAO std = new SecondTitleDAO();	//实例化对象 处理一级标题
	int n = std.insert(secondName,filePath, "江南",parentId);
	if(n>0)
		response.sendRedirect("title_file_sucess.html"); 
	else 
		response.sendRedirect("second_title.jsp");
%>
